package com.motorola.dp.jenkinsmonitor.model.util.svn;

import java.util.List;

import com.motorola.dp.jenkinsmonitor.model.util.dom.DomChildren;
import com.motorola.dp.jenkinsmonitor.model.util.dom.DomEntity;

@DomEntity(name = "modules")
public class SvnModules {

    @DomChildren
    private List<SvnModule> modules;

    public List<SvnModule> getModules() {
        return modules;
    }

    public void setModules(List<SvnModule> modules) {
        this.modules = modules;
    }

    @Override
    public String toString() {
        Integer modulesTotal = 0;
        if (modules != null) {
            modulesTotal = modules.size();
        }
        return "SvnModules [modules total: " + modulesTotal + "]";
    }

}
